<template>
    <div>
        <SlotChild :list="list">
            <template #default>
                <div>默认值</div>
            </template>

            <template #content>
                <div>具名</div>
            </template>

            <template #actions="{items}">
                <div>作用域  {{ items.join(',') }}</div>
            </template>
        </SlotChild>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import SlotChild from './SlotChild.vue';

const list = ref<string[]>(['Vue', 'React', 'Angular']);
</script>
